package com.briup.day41.downlaod;

import java.io.RandomAccessFile;

/**
 * 随机流
 * */
public class RandomAcessFileDemo1 {
	public static void main(String[] args) throws Exception {
		
		String path = "src/com/briup/day38/demo4.txt";
		String mode = "rw";
		
		RandomAccessFile raf = new RandomAccessFile(path, mode);
		
		raf.read();
		raf.read();
		raf.seek(5);
		System.out.println((char)raf.read());
	}

}
